#ifndef SETTING_H
#define SETTING_H
#include <QPushButton>
#include <QLabel>
#include <QWidget>
#include <QLayout>
#include <QHBoxLayout>
#include <QString>
#include <QVBoxLayout>
#include <QLineEdit>
#include <QAction>
#include <QFileDialog>
#include <QSettings>
#include <QDialog>
#include <QComboBox>
#include <QString>
#include <QMap>
#include <QSettings>
#include <QMenu>
#include <QProcess>
#include <QFrame>
#include <QWidgetAction>
#include "camerapage.h"
#include "switchbutton.h"

#include "util/daemonipcdbus.h"
class Setting: public QFrame
{
    Q_OBJECT

public:
    Setting(QWidget *parent = 0);
    //  ~Setting();
    QMenu *menu;
    QWidgetAction *delay_action;
    QWidgetAction *mirror_action;
    QAction *set;
    QAction *theme;
    QAction *help;
    QAction *about;
    QAction *quit;
//    QPushButton *set;
//    QPushButton *theme;
//    QPushButton *help;
//    QPushButton *about;
    QWidget *delay;
//    QWidget *mirror;
    QLabel *mirrorlab;
    QLabel *delaylab;

    SwitchButton *delaybtn;
    SwitchButton *mirrorbtn;
    QMenu *themeMenu; //设置主题菜单

    QHBoxLayout *delayLayout;
    QHBoxLayout *mirrorLayout;
    DaemonIpcDbus *m_pDaemonIpcDbus;
    void init_ui();
signals:

public slots:

private:
    void initAboutText();
};

#endif // SETTING_H
